
 	/*
 public class ListNode {
    int val;
    ListNode next = null;

    ListNode(int val) {
        this.val = val;
    }
}
*/
public class NO182 {
    public ListNode deleteDuplication(ListNode pHead)
    {
		if(pHead == null)
            return null ;
        if(pHead !=null && pHead.next == null)
            return pHead;
		
		if(pHead.val != pHead.next.val){
				pHead.next = deleteDuplication(pHead.next);
				return pHead;
			}else {
			 	int val = pHead.val ;
			 	while (pHead.val = val) {
			 		pHead = pHead.next ;
			 		if(pHead == null)
			 			return null ;
			 	}
			 	return deleteDuplication(pHead);
			}
}
